import router from "./index";
router.beforeEach((to , from , next) => {
  // 控制结果页面返回上一级
  if(to.path.indexOf('rePaymentResult') > -1 && from.path === '/repayment'){
    return next('/')
  }
  next()
})